<?php 
	require_once("../includes/public.inc.php");
	
	$type = isset($_GET['type'])?$_GET['type']:'';
	$id = isset($_GET['id'])?$_GET['id']:0;
	$hd = mysql_fetch_array(mysql_query("select * from ".DBQIAN."huodong where id=".$id." order by id desc limit 1"));
	$htmlData = '';
	if (!empty($hd['content'])) {
		if (get_magic_quotes_gpc()) {
			$htmlData = htmlspecialchars_decode(stripslashes($hd['content']));
		} else {
			$htmlData = htmlspecialchars_decode($hd['content']);
		}
	}
?>
<!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.0//EN" "http://www.wapforum.org/DTD/xhtml-mobile10.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

<meta name="viewport" content="user-scalable=yes, width=device-width, initial-scale=1.0, maximum-scale=1.0">
<title>促销活动</title>



<link rel="stylesheet" type="text/css" href="css/show.css" media="all">
</head>
<body>
<div class="pz-css">
	<ul class="top-tool">
		<li class="title">促销活动</li>
		<li class="back"><a href="javascript:history.go(-1)"></a>
		</li><li class="home"><a href="index.php?type=<?=$type?>"></a></li>
	</ul>
	
	<?if ($hd):?>
	<div class="pz-panel">
		<h3 class="bfont"><?=$hd['title']?></h3> 		  
	</div>
    <div class="pz-panel">
		<h3 class="bfont">活动从<?=$hd['begin_time']?>至<?=$hd['end_time']?></h3> 		  
	</div>
	<div class="pz-panel">
		<p></p><?=$htmlData?><p></p>
	</div>
	<?endif;?>
	<div class="span12"><button type="button" class="red" onclick="javascript:history.go(-1)">返回</button></div>
</div>
</body>
</html>